<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/3/22
  Time: 14:31
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>简历详情</title>
    <link href="../css/homePage.css" rel="stylesheet" type="text/css"/>
    <link href="../css/resume.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="../css/plug-time-css/jquery-ui.css"/>
    <link rel="stylesheet" id="skin" href="../css/plug-time-css/jquery-ui-1.9.2.custom.min17.css">
    <script type="text/javascript" src="../script/jquery-3.2.1.js"></script>
    <script type="text/javascript" src="../script/jquery-ym-datePlugin-0.1.js"></script>
    <script type="text/javascript" src="../script/commonFunction.js"></script>
    <style type="text/css">
        #resume_detail_body {
            background-image: url("../images/bg90.jpg");
            background-size: cover;
        }

        #resume_table0 {
            margin: 66px auto;
            width: 566px;
        }

        #resume_table0 tbody td:nth-child(odd) {
            width: 99px;
        }

        #resume_table0 tbody td:nth-child(even) {
            background-color: rgba(230, 230, 230, 0.6);
        }

        tfoot td {
            text-align: center;
            height: 36px;
            line-height: 36px;
        }

    </style>
    <script type="text/javascript">
        $(function () {
            $("#resume_detail_form").hide();
            tick();

            //显示选择面试时间
            $("#resume_view").click(function () {
                $("#resume_detail_form").show();
            });

            $("#resume_go_back").click(function () {
                var date = $("#demoText1").val();
                if (date === '')
                    if (confirm("您还没有选择面试时间，确定要操作吗？"))
                        window.location.href = "../apply/goApplyManage";
            });

            $("#view_date_go_back").click(function () {
                var date = $("#demoText1").val();
                if (date === '')
                    if (confirm("您还没有选择面试时间，确定要操作吗？"))
                        $("#resume_detail_form").hide();
            });

             //默认功能
             $("#demoText1").ymdateplugin();

            //换肤
            $("#skins").trigger("click");
            $("#skins").click(function () {
                $("#skins").trigger("change");
            });
            $("#skins").change(function () {
                if ($(this).val() > 0) {
                    $("#skin").attr("href", "../css/plug-time-css/jquery-ui-1.9.2.custom.min" + $(this).val() + ".css");
                } else {
                    $("#skin").attr("href", "");
                }
            });

        });

        function checkDetailForm() {
            var $d = $("#demoText1");
            if ($d.val() === '') {
                alert("请选择面试时间！");
                return false;
            }
            return checkDateTime($d);
        }
    </script>
</head>

<body id="resume_detail_body">

<div id="welcome">
    <c:if test="${manager != null}">
        欢迎${manager.name }登录&nbsp;&nbsp;&nbsp;<a id="admin_quit0" onclick="quit0(this)">退出</a>
    </c:if>
    <c:if test="${manager == null }">
        <%response.sendRedirect("../admin/login.jsp");%>
    </c:if>
    <span id="showTime">本地时间：<span id="localtime"></span></span>
</div>

<table cellspacing="1" cellpadding="1" border="solid 1px #000" id="resume_table0">
    <thead>
    <tr>
        <th colspan="4"><p>简历详情</p></th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td>真实姓名：</td>
        <td>${resumeDetail.realName}</td>
        <td>性别：</td>
        <td>${resumeDetail.sex}</td>
    </tr>
    <tr>
        <td>年龄：</td>
        <td>${resumeDetail.age}</td>
        <td>学历：</td>
        <td>${resumeDetail.education.education}</td>
    </tr>
    <tr>
        <td>联系方式：</td>
        <td>${resumeDetail.user.phone}</td>
        <td>e-mail：</td>
        <td>${resumeDetail.email}</td>
    </tr>
    <tr>
        <td>应聘职位：</td>
        <td>${resumeDetail.position.section.section} ${resumeDetail.position.position}</td>
        <td>政治面貌：</td>
        <td>${resumeDetail.politicsStatus.politics}</td>
    </tr>
    <tr>
        <td>上一份工作：</td>
        <td>${resumeDetail.lastJop}</td>
        <td>工作经验：</td>
        <td>${resumeDetail.experience}</td>
    </tr>
    <tr>
        <td>期望薪资：</td>
        <td>${resumeDetail.expectedSalary}</td>
        <td>兴趣爱好：</td>
        <td>${resumeDetail.hobbies}</td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
        <td colspan="2">
            <input type="button" class="resume_bu" id="resume_view" value="面试">
        </td>
        <td colspan="2">
            <input type="button" class="resume_bu" id="resume_go_back" value="返回">
        </td>
    </tr>
    </tfoot>
</table>

<form method="post" action="../apply/addInterviewDate" id="resume_detail_form" style="width: 266px; margin: 10px auto"
      onsubmit="return checkDetailForm()">
    <input type="hidden" value="${applyId}" name="id">
    <span>更换日历皮肤:</span>
    <select id="skins">
        <option value="0">无皮肤</option>
        <option value="1">高亮</option>
        <option value="2">黑暗</option>
        <option value="3">平滑</option>
        <option value="4">开始</option>
        <option value="5">微软</option>
        <option value="6">阳光</option>
        <option value="7">阴天</option>
        <option value="8">青蛙</option>
        <option value="9">轻盈</option>
        <option value="10">蜂箱</option>
        <option value="11">胡椒</option>
        <option value="12">茄子</option>
        <option value="13">库比蒂诺</option>
        <option value="14">南街</option>
        <option value="15">闪击</option>
        <option value="16">人类</option>
        <option value="17">hot sneaks</option>
        <option value="18">excite-bike</option>
        <option value="19">vader</option>
        <option value="20">dot-luv</option>
    </select>
    <table cellspacing="0" cellpadding="0" border="1px"
           style="width: 299px; background-color: rgba(0,130,230,0.6)" id="train_table">
        <thead>
        <tr>
            <th colspan="2">添加面试时间</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td><label for="demoText1">面试时间：</label></td>
            <td>
                <input type="text" name="interviewDate" id="demoText1" readonly="readonly" placeholder="请选择面试时间"/>
            </td>
        </tr>
        <tfoot>
        <tr style="text-align: center">
            <td colspan="2">
                <input type="reset" id="view_date_go_back" value="返回" class="train_sub">
                <input type="submit" value="确认" class="train_sub">
            </td>
        </tr>
        </tfoot>
    </table>
</form>


</body>
</html>
